/**
 * 入库明细 api
 */
import request from '@/utils/request'

const BASE_URL = '/wms/store-in-apply-detail'

export function deleteDetail(id) {
  return request({
    url: BASE_URL + '/delete/' + id,
    method: 'GET'
  })
}

export function saveDetail(data) {
  return request({
    url: BASE_URL + '/saveDetail',
    method: 'POST',
    data
  })
}

export function getDetailList(applyId) {
  return request({
    url: BASE_URL + '/list/' + applyId,
    method: 'GET'
  })
}

export function getDetailQrcodeList(id) {
  return request({
    url: BASE_URL + '/qrCodeList/' + id,
    method: 'GET'
  })
}

export function getQrCodeImage(qrCodeNo) {
  return request({
    url: BASE_URL + '/showQrcode/' + qrCodeNo,
    method: 'GET',
    responseType: 'blob'
  })
}
